package demo9;

public class Test {
    public static void walk(IRunning running){
        running.run();
    }
    public static void main(String[] args) {
        Bird bird = new Bird("小鸟");
        walk(bird);
        Cat cat = new Cat("猫咪");
        walk(cat);
    }
}